package com.itmuch.demoprovider.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "demo-provider")
public interface UserFeignClient {
    @PostMapping("login")
    UserLoginDTO login(@RequestBody UserLoginDTO userLoginDTO);

    @GetMapping("/getUserInfo")
    List<UserSearchDTO> getUserInfo(@RequestParam("username") String username, @RequestParam("gender") Short gender);
}
